<template>
  <div>
    <div class="yxp-scene-en" v-if="isReload">
      <div class="close" id="yxp-commp-back10" @click="handleClose"></div>
        <p class="tips">是否重新拼写？</p>
        <div class="btn">
        <div class="btn-item" @click="handleBack">确定</div>
        <div class="btn-item" @click="handleClose">取消</div>
        </div>
    </div>
  </div>
</template>
<script>
export default {
  name: 'message',
  props: {
    isReload: {
      type: Boolean,
      default: false
    }
  },
  data () {
    return {}
  },
  mounted () {
    
  },
  methods: {
    handleClose () {
      this.$emit('reloadWord', false)
    },
    handleBack () {
      this.$emit('reloadWord', true)
    }
  }
}
</script>
<style lang='less' scoped>
.yxp-scene-en {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    width: 360px;
    text-align: center;
    background: #fff;
    border-radius: 10px;
    z-index: 1200;
    .close {
      position: absolute;
      right: 20px;
      top: 20px;
      width: 20px;
      height: 20px;
      background: url(../../../assets/word/close-icon.png) no-repeat;
      background-size: 20px 20px;
      cursor: pointer;
      &:hover {
        background-image: url(../../../assets/word/close-hover.png);
      }
    }
    .tips {
      font-size: 24px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      color: #333;
      line-height:80px;
      padding: 30px 0;
    }
    .btn {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-left: 40px;
      padding-right: 40px;
      padding-bottom: 30px;
      &-item {
        width: 130px;
        height: 50px;
        line-height: 50px;
        text-align: center;
        font-size: 18px;
        font-family: Microsoft YaHei;
        font-weight: 400;
        color: #fff;
        background: #27BFA3;
        border-radius: 100px;
        cursor: pointer;
        cursor: pointer;
        &:first-child {
          margin-right: 20px;
        }
        &:hover {
          background: #18A38A;
        }
      }
    }
  }
</style>
